//
//  ArticleListModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/20.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "ArticleListModel.h"

@implementation ArticleListModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.bannerType = [dict[@"bannerType"] integerValue];
        self.bannerUrl = dict[@"bannerUrl"];
        self.category = [dict[@"category"] integerValue];
        self.content = dict[@"content"];
        self.formatCreateDate = dict[@"formatCreateDate"];
        self.ID = [dict[@"id"] integerValue];
        self.portraitUrl = dict[@"portraitUrl"];
        self.title = dict[@"title"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[ArticleListModel alloc]initWithDict:dict];
}

@end
